Write Logic Swapping Two Values with extra variable in python || Swapping 2 numbers with extra tempary variable use

Write Logic Swapping Two Values with extra variable in python Swapping 2 numbers with extra tempary variable use
Ask User Two Input Enter Your Number Solution Code : i = int(input('i : ')) j = int(input('j : ')) k = i i = j j = k print(i, j) Second Solution Code : a = 10 b = 5 a = a + b b = a - b a = a - b print("value a : ", a) print("value b : ", b) Write Your Solution in Comment Box

Please Select Embedded Mode To Show The Comment System.*

Previous Post Next Post